package vn.fpt.fsoft.entities;

import java.sql.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @author MinhNC7
 *
 */
@Entity
@Table(name = "PremiseRate")
public class PremiseRate {
	private int premiseRateID;
	private String roomOnlyRate;
	private String bbRate;
	private String dBBRate;
	private String hrRate;
	private String teaAndCoffee;
	private boolean lunch;
	private String noMeetingRoom;
	private String meetRoomRate;
	private String coding;
	private String negRoomOnlyRate;
	private String bbNegRate;
	private String ddNegRate;
	private String hrNegRate;
	private Date lastNegDate;
	private Date reNegOn;
	private String preferStatus;
	private String comment;
	private Premise premise;
	
	@Id
	@Column(name = "PremiseRateID")
	public int getPremiseRateID() {
		return premiseRateID;
	}
	public void setPremiseRateID(int premiseRateID) {
		this.premiseRateID = premiseRateID;
	}
	
	
	@Column(name = "RoomOnlyRate")
	public String getRoomOnlyRate() {
		return roomOnlyRate;
	}
	public void setRoomOnlyRate(String roomOnlyRate) {
		this.roomOnlyRate = roomOnlyRate;
	}
	
	@Column(name = "BBRate")
	public String getBbRate() {
		return bbRate;
	}
	public void setBbRate(String bbRate) {
		this.bbRate = bbRate;
	}
	
	@Column(name = "DBBRate")
	public String getdBBRate() {
		return dBBRate;
	}
	public void setdBBRate(String dBBRate) {
		this.dBBRate = dBBRate;
	}
	
	@Column(name = "HrRate")
	public String getHrRate() {
		return hrRate;
	}
	public void setHrRate(String hrRate) {
		this.hrRate = hrRate;
	}
	
	@Column(name = "TeaAndCoffee")
	public String getTeaAndCoffee() {
		return teaAndCoffee;
	}
	public void setTeaAndCoffee(String teaAndCoffee) {
		this.teaAndCoffee = teaAndCoffee;
	}
	
	@Column(name = "Lunch")
	public boolean isLunch() {
		return lunch;
	}
	public void setLunch(boolean lunch) {
		this.lunch = lunch;
	}
	
	@Column(name = "NoOfMeetingRoom")
	public String getNoMeetingRoom() {
		return noMeetingRoom;
	}
	public void setNoMeetingRoom(String noMeetingRoom) {
		this.noMeetingRoom = noMeetingRoom;
	}
	
	@Column(name = "MeetingRoomRate")
	public String getMeetRoomRate() {
		return meetRoomRate;
	}
	public void setMeetRoomRate(String meetRoomRate) {
		this.meetRoomRate = meetRoomRate;
	}
	
	@Column(name = "Codings")
	public String getCoding() {
		return coding;
	}
	public void setCoding(String coding) {
		this.coding = coding;
	}
	
	@Column(name = "NegRoomOnlyRate")
	public String getNegRoomOnlyRate() {
		return negRoomOnlyRate;
	}
	public void setNegRoomOnlyRate(String negRoomOnlyRate) {
		this.negRoomOnlyRate = negRoomOnlyRate;
	}
	
	@Column(name = "BBNegRate")
	public String getBbNegRate() {
		return bbNegRate;
	}
	public void setBbNegRate(String bbNegRate) {
		this.bbNegRate = bbNegRate;
	}
	
	@Column(name = "DDNegRate")
	public String getDdNegRate() {
		return ddNegRate;
	}
	public void setDdNegRate(String ddNegRate) {
		this.ddNegRate = ddNegRate;
	}
	
	@Column(name = "HrNegRate")
	public String getHrNegRate() {
		return hrNegRate;
	}
	public void setHrNegRate(String hrNegRate) {
		this.hrNegRate = hrNegRate;
	}
	
	@Column(name = "LastNegDate")
	public Date getLastNegDate() {
		return lastNegDate;
	}
	public void setLastNegDate(Date lastNegDate) {
		this.lastNegDate = lastNegDate;
	}
	
	@Column(name = "Re_NegOn")
	public Date getReNegOn() {
		return reNegOn;
	}
	public void setReNegOn(Date reNegOn) {
		this.reNegOn = reNegOn;
	}
	
	@Column(name = "PreferredStatus")
	public String getPreferStatus() {
		return preferStatus;
	}
	public void setPreferStatus(String preferStatus) {
		this.preferStatus = preferStatus;
	}
	
	@Column(name = "Comment")
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
	
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PremiseID", nullable = false)
	public Premise getPremise() {
		return premise;
	}
	public void setPremise(Premise premise) {
		this.premise = premise;
	}
	public PremiseRate(int premiseRateID, String roomOnlyRate, String bbRate,
			String dBBRate, String hrRate, String teaAndCoffee, boolean lunch,
			String noMeetingRoom, String meetRoomRate, String coding,
			String negRoomOnlyRate, String bbNegRate, String ddNegRate,
			String hrNegRate, Date lastNegDate, Date reNegOn,
			String preferStatus, String comment, Premise premise) {
		this.premiseRateID = premiseRateID;
		this.roomOnlyRate = roomOnlyRate;
		this.bbRate = bbRate;
		this.dBBRate = dBBRate;
		this.hrRate = hrRate;
		this.teaAndCoffee = teaAndCoffee;
		this.lunch = lunch;
		this.noMeetingRoom = noMeetingRoom;
		this.meetRoomRate = meetRoomRate;
		this.coding = coding;
		this.negRoomOnlyRate = negRoomOnlyRate;
		this.bbNegRate = bbNegRate;
		this.ddNegRate = ddNegRate;
		this.hrNegRate = hrNegRate;
		this.lastNegDate = lastNegDate;
		this.reNegOn = reNegOn;
		this.preferStatus = preferStatus;
		this.comment = comment;
		this.premise = premise;
	}
	public PremiseRate(){}
}
